package com.oneraku.service.exceptions;

import com.oneraku.service.utils.R;
import com.oneraku.service.utils.ResultCode;

/**
 * @Author: hui.ren@huberbuy.com
 * @Date: 2020/1/10 15:59
 */
public class InfoException extends RuntimeException {
    public InfoException() {
    }

    public InfoException(String message) {
        super(message);
    }
    public R getResult(String msg){
        R result = new R();
        result.setCode(ResultCode.HTTP_ERROR_400.getCode());
        result.setMessage(msg);
        return result;
    }
}
